package com.example.domain;

public class CmdResult {
    /** int取值为0时代表成功，非0代表失败 */
    private int errCode;
    /** 字符串用于解释失败原因 */
    private String msg;

    public CmdResult() {
        this.errCode = 0;
        this.msg = "OK";
    }

    public CmdResult(int errCode, String msg) {
        this.errCode = errCode;
        this.msg = msg;
    }

    public int getErrCode() {
        return errCode;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
